home *** CD-ROM | disk | FTP | other *** search
- /* This script transforms the Y values by an
- amount requested by user. */
-
-
- port= 'MULTIPLOT.01'
- RESULT=''
- RC=0
-
- /* Check Multiplot is running */
- options results
- if(~show('p',port)) then do
- say "Please start Multiplot first."
- exit 1
- end
- address value port
- 'QUERY'
- if(rc ~=0) then do
- say "QUERY command failed!"
- exit 1
- end
-
- /* Check a PLOT WINDOW is activated */
- if(compare('PLOWIN',RESULT)<6) then do
- 'SAY Please select a PLOT WINDOW first'
- exit 1
- end
-
- /* Check a data set is selected and find out which one */
- 'PEEK 1 NOVALS'
- if(rc ~=0) then do
- 'SAY Please select a Data Set first'
- exit 1
- end
- say NOVALS
- 'LAUNCH'
- 'QUE'
- setno=word(RESULT,words(RESULT))
- 'STOP'
-
- /* Get value to shift by and change Y values */
- 'PULL AREXX: Please enter shift value'
- val=RESULT
- do i=1 to NOVALS
- 'SELECT SET 'setno
- 'SELECT POINT ' i
- 'SELECT REPLACE'
- 'PEEK 1'
- xvar=WORD(POINT,1)
- yvar=WORD(POINT,2)
- POINT=DELWORD(POINT,1,2)
- yvar=yvar + val
- POINT=INSERT(' ',POINT)
- POINT=INSERT(yvar,POINT)
- POINT=INSERT(' ',POINT)
- POINT=INSERT(xvar,POINT)
- POKE 1
- end
-
- /* Replot */
- 'FULLPLOT'
-